package com.kgc.crowd.distributioncrowddatabaseprovider.service.impl;

import com.kgc.crowd.distributioncrowdcommon.pojo.TypePO;
import com.kgc.crowd.distributioncrowddatabaseprovider.mapper.TypePOMapper;
import com.kgc.crowd.distributioncrowddatabaseprovider.service.TypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Transactional(readOnly = true)
@Service
public class TypeServiceImpl implements TypeService {
    @Resource
    TypePOMapper typePOMapper;
    @Override
    public List<TypePO> selectAllType() {
        return typePOMapper.selectType();
    }
}
